package com.infore.airsupervise.bean;

import com.chad.library.adapter.base.entity.AbstractExpandableItem;
import com.chad.library.adapter.base.entity.MultiItemEntity;

import java.util.List;

/**
 * Created by xiaotao on 2017/8/11.
 */

public class StationExpandE extends AbstractExpandableItem<StationExpandE.Station2> implements MultiItemEntity {
    private String id;
    private String mn;
    private String name;
    private int isFa;
    private List<Station2> stationList;
    private boolean selected;

    public boolean isSelected() {
        return selected;
    }

    public void setSelected(boolean selected) {
        this.selected = selected;
    }

    public int getIsFa() {
        return isFa;
    }

    public void setIsFa(int isFa) {
        this.isFa = isFa;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getMn() {
        return mn;
    }

    public void setMn(String mn) {
        this.mn = mn;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<Station2> getStationList() {
        return stationList;
    }

    public void setStationList(List<Station2> stationList) {
        this.stationList = stationList;
    }

    @Override
    public int getLevel() {
        return 0;
    }

    @Override
    public int getItemType() {
        return 0;
    }


    public static class Station2 extends AbstractExpandableItem<Station3> implements MultiItemEntity{
        private String id;
        private String mn;
        private String name;
        private int isFa;
        private List<Station3> stationList;
        private boolean selected;

        public boolean isSelected() {
            return selected;
        }

        public void setSelected(boolean selected) {
            this.selected = selected;
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getMn() {
            return mn;
        }

        public void setMn(String mn) {
            this.mn = mn;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public int getIsFa() {
            return isFa;
        }

        public void setIsFa(int isFa) {
            this.isFa = isFa;
        }

        public List<Station3> getStationList() {
            return stationList;
        }

        public void setStationList(List<Station3> stationList) {
            this.stationList = stationList;
        }

        @Override
        public int getLevel() {
            return 0;
        }

        @Override
        public int getItemType() {
            return 1;
        }
    }

    public static class Station3 extends BaseEntity implements MultiItemEntity{
        private String id;
        private String mn;
        private String name;
        private int isFa;
        private boolean selected;

        public boolean isSelected() {
            return selected;
        }

        public void setSelected(boolean selected) {
            this.selected = selected;
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getMn() {
            return mn;
        }

        public void setMn(String mn) {
            this.mn = mn;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public int getIsFa() {
            return isFa;
        }

        public void setIsFa(int isFa) {
            this.isFa = isFa;
        }

        @Override
        public int getItemType() {
            return 2;
        }
    }

}
